package com.jason.kotlin.meta

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.jason.kotlin.meta.architecture1.ui.MetaImageActivity
import com.jason.kotlin.meta.architecture2.ui.WanAndroidActivity
import com.jason.library.common.ext.showToast
import com.jason.library.common.ext.start
import com.jason.library.widget.test.WidgetTestActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    fun onClick(view: View) {
        when(view.id) {
            R.id.btn_architecture1 -> start(MetaImageActivity::class.java)
            R.id.btn_architecture2 -> start(WanAndroidActivity::class.java)
            //R.id.btn_architecture3 -> start(GankHomeActivity::class.java)
            R.id.btn_widget -> start(WidgetTestActivity::class.java)
            else -> showToast(R.string.common_developing)
        }
    }


}